package cn.common.component.repository;

import cn.common.component.entity.Qrcodewithproduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QrcodeproductRepository extends JpaRepository<Qrcodewithproduct ,Integer> {
    //    @Override
//    List<Qrcodewithproduct> findAllBy(Iterable<Integer> integers);
//    findAll
    List<Qrcodewithproduct> findAllByStatusNotIn(String status);

    List<Qrcodewithproduct> findAllByStatusIsNullAndFlatEquals(Integer flat);
    List<Qrcodewithproduct> findAllByStatusIsNullAndParam02IsNullAndFlatEquals(Integer flat);
}
